package org.springcloud.wisdom.amusement.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@AllArgsConstructor // 所有参数的构造函数
@NoArgsConstructor // 无参构造函数
@Data // 自动生成 getter 和 setter 方法
@TableName("notice") // 指定表名
public class AmusementNotice {
    private Integer id;
    private String title;
    private String content;
    @DateTimeFormat(pattern = "yyyy年MM月dd日")
    @JsonFormat(pattern = "yyyy年MM月dd日",timezone = "Asia/Shanghai")
    private Date publishdt;
    private String identity;
    private String ispublic;
    private String reason;
    private Integer isdel;
    private Integer type;
}
